package com.thinkverse.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * verification_codes 表映射
 */
@Data
@NoArgsConstructor
@TableName("verification_codes")
public class VerificationCode {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String email;
    private String code;
    private String type; // REGISTER or IDENTITY_VERIFY
    private LocalDateTime expireTime;
    private LocalDateTime createdAt;
}
